/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "刀具库",TableName = "upper_tool")]
    public partial class upper_tool:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int id { get; set; }

       /// <summary>
       ///工具名称
       /// </summary>
       [Display(Name ="工具名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string tool_name { get; set; }

       /// <summary>
       ///刀长
       /// </summary>
       [Display(Name ="刀长")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? knife_length { get; set; }

       /// <summary>
       ///刃长
       /// </summary>
       [Display(Name ="刃长")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? blade_length { get; set; }

       /// <summary>
       ///类型
       /// </summary>
       [Display(Name ="类型")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string category { get; set; }

       /// <summary>
       ///刀宽
       /// </summary>
       [Display(Name ="刀宽")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? knife_width { get; set; }

       /// <summary>
       ///实际刀长
       /// </summary>
       [Display(Name ="实际刀长")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? reality_knife_length { get; set; }

       /// <summary>
       ///实际刃长
       /// </summary>
       [Display(Name ="实际刃长")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? reality_blade_length { get; set; }

       /// <summary>
       ///实际刀宽
       /// </summary>
       [Display(Name ="实际刀宽")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? reality_knife_width { get; set; }

       /// <summary>
       ///位置
       /// </summary>
       [Display(Name ="位置")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? location { get; set; }

       /// <summary>
       ///R角
       /// </summary>
       [Display(Name ="R角")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? R { get; set; }

       /// <summary>
       ///刀柄类型
       /// </summary>
       [Display(Name ="刀柄类型")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string handle_type { get; set; }

       /// <summary>
       ///夹头类型
       /// </summary>
       [Display(Name ="夹头类型")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string collet_type { get; set; }

       /// <summary>
       ///夹头长度
       /// </summary>
       [Display(Name ="夹头长度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? collet_length { get; set; }

       /// <summary>
       ///加长杆类型
       /// </summary>
       [Display(Name ="加长杆类型")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string extensions_type { get; set; }

       /// <summary>
       ///加长杆长度
       /// </summary>
       [Display(Name ="加长杆长度")]
       [Column(TypeName="double")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal extensions_length { get; set; }

       /// <summary>
       ///刀具类型
       /// </summary>
       [Display(Name ="刀具类型")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string tool_type { get; set; }

       /// <summary>
       ///对刀长度
       /// </summary>
       [Display(Name ="对刀长度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? pairing_length { get; set; }

       /// <summary>
       ///使用状态
       /// </summary>
       [Display(Name ="使用状态")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int use_status { get; set; }

       /// <summary>
       ///精度
       /// </summary>
       [Display(Name ="精度")]
       [Column(TypeName="double")]
        [Editable(true)]
        public decimal? accuracy { get; set; }

       /// <summary>
       ///工单id
       /// </summary>
       [Display(Name ="工单id")]
       [Column(TypeName="int")]
       public int? work_order_id { get; set; }

       /// <summary>
       ///订单状态
       /// </summary>
       [Display(Name ="订单状态")]
       [Column(TypeName="int")]
       public int? work_order_status { get; set; }

       /// <summary>
       ///程序单序号
       /// </summary>
       [Display(Name ="程序单序号")]
       [Column(TypeName="int")]
       public int? program_seq { get; set; }

       /// <summary>
       ///实际对刀长度
       /// </summary>
       [Display(Name ="实际对刀长度")]
       [Column(TypeName="double")]
        [Editable(true)]
        public decimal? reality_pairing_length { get; set; }

       /// <summary>
       ///实际加长杆长度
       /// </summary>
       [Display(Name ="实际加长杆长度")]
       [Column(TypeName="double")]
        [Editable(true)]
        public decimal? reality_extensions_length { get; set; }

       /// <summary>
       ///实际刀尖圆角
       /// </summary>
       [Display(Name ="实际刀尖圆角")]
       [Column(TypeName="double")]
        [Editable(true)]
        public decimal? reality_R { get; set; }

        /// <summary>
        ///厂商代码
        /// </summary>
        [Display(Name = "厂商代码")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string vendor_code { get; set; }

        /// <summary>
        ///刀具材料
        /// </summary>
        [Display(Name = "刀具材料")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string tool_materials { get; set; }

        /// <summary>
        ///加工开始时间
        /// </summary>
        [Display(Name = "加工开始时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? process_start_time { get; set; }

        /// <summary>
        ///加工完成时间
        /// </summary>
        [Display(Name = "加工完成时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? process_end_time { get; set; }


        /// <summary>
        ///加工前刀径
        /// </summary>
        [Display(Name = "加工前刀径")]
        [Column(TypeName = "double")]
        [Editable(true)]
        public decimal? process_before_tool_width { get; set; }

        /// <summary>
        ///加工后刀径
        /// </summary>
        [Display(Name = "加工后刀径")]
        [Column(TypeName = "double")]
        [Editable(true)]
        public decimal? process_after_tool_width { get; set; }



        /// <summary>
        ///加工前刀长
        /// </summary>
        [Display(Name = "加工前刀长")]
        [Column(TypeName = "double")]
        [Editable(true)]
        public decimal? process_before_tool_length { get; set; }

        /// <summary>
        ///加工后刀长
        /// </summary>
        [Display(Name = "加工后刀长")]
        [Column(TypeName = "double")]
        [Editable(true)]
        public decimal? process_after_tool_length { get; set; }


    }
}